<!-- 用户留言 -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>
        back_blog - <%= title %>
    </title>
</head>
<link rel="shortcut icon" href="./images/favicon.ico">
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./stylesheets/public.css">
<link rel="stylesheet" href="./stylesheets/peopleleaveword.css">

<body>
    <div class="blogwrap">
        <%- include head %>
            <div class="navbarconent col-md-12 col-sm-12 col-xs-12">
                <div class="boxContent">
                    <div class="navtitle clearfix">
                        <ol class="breadcrumb">
                            <li><a href="/">主页</a></li>
                            <li><a>用户管理</a></li>
                            <li><a href="/peopleleaveword">游客留言</a></li>
                        </ol>
                    </div>
                    <div class="peopleleaveword">
                        <p class="title">用户留言</p>
                        <table class="table table-bordered table-striped with-check" style="word-break:break-all; word-wrap:break-all;">
                            <thead>
                                <tr>
                                    <th>留言ID</th>
                                    <th>留言者</th>
                                    <th>留言时间</th>
                                    <th>留言者邮箱</th>
                                    <th>留言者网站</th>
                                    <th>留言内容</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <% for(let i in liuyandata.list){ %>
                                    <tr>
                                        <td>
                                            <%= liuyandata.list[i]._id %>
                                        </td>
                                        <td>
                                            <%= liuyandata.list[i].visitor %>
                                        </td>
                                        <td>
                                            <%= liuyandata.list[i].time %>
                                        </td>
                                        <td>
                                            <%= liuyandata.list[i].mail %>
                                        </td>
                                        <td>
                                            <%= liuyandata.list[i].website %>
                                        </td>
                                        <td>
                                            <%= liuyandata.list[i].content %>
                                        </td>
                                        <td>
                                            <a class="btn btn-danger" delhref="/deleteliuyan?id=<%= liuyandata.list[i]._id%>&page=<%= liuyandata.curPage%>">删除</a>
                                        </td>
                                    </tr>
                                    <%}%>
                            </tbody>
                        </table>
                    </div>
                    <div class="paging">
                        <p class="totalpage"><a>共<%= liuyandata.total %>页</a></p>
                        <ul class="pagination" title=<%=liuyandata.curPage%>>
                            <% for(let j=1;j <=liuyandata.total; j++){ %>
                                <li>
                                    <a href="/peopleleaveword?page=<%= j%>">
                                        <%= j%>
                                    </a>
                                </li>
                                <% } %>
                        </ul>
                    </div>
                </div>

            </div>
    </div>

</body>
<script src="./javascripts/jquery.min.js"></script>
<script src="./bootstrap/js/bootstrap.min.js"></script>
<script src="./javascripts/sweetalert2@8.js"></script>
<script src="./javascripts/peopleleaveword.js"></script>

</html>